package com.example.demo.controller;

import com.example.demo.client.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 蔡超 on 2019/1/6.
 */
@RestController
public class UserController {

    @Autowired
    UserClient userClient;

    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public String info() {
        return userClient.info();
    }

}
